package com.xiaominfo.oss.sdk.upload;

import com.xiaominfo.oss.sdk.client.FileBytesResponse;
import com.xiaominfo.oss.sdk.common.OSSClientMessage;

import java.io.File;
import java.io.UnsupportedEncodingException;

/**
 * 上传规范接口
 */
public interface IUpload {


    /**
     * 文件上传
     *
     * @return
     */
    OSSClientMessage<FileBytesResponse> upload(File file) throws UnsupportedEncodingException;

    /**
     * 文件验证
     * @param md5 文件值
     * @return
     */

    OSSClientMessage<FileBytesResponse> verificationMD5(String md5) throws UnsupportedEncodingException;
}
